<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>控件布局在线生成</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="css/bootstrap.css" rel="stylesheet">
    <style>
    body {
        padding-top: 60px;
        /* 60px to make the container go all the way to the bottom of the topbar */
    }
    </style>
    <link href="css/bootstrap-responsive.css" rel="stylesheet">
    <link href="css/jquery-ui-1.10.4.css" rel="stylesheet">
    <link href="css/styles.css" rel="stylesheet">
</head>

<body>

    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="brand" href="#">Project name</a>
                <div class="nav-collapse collapse">
                    <ul class="nav">
                        <li class="active"><a href="#">Home</a>
                        </li>
                        <li><a href="#about">About</a>
                        </li>
                        <li><a href="#contact">Contact</a>
                        </li>
                    </ul>
                    <div class="btn-group">
                        <button id='download' class="btn" type="button">
                            <em class="icon-download"></em>
                            下载
                        </button>

                    </div>
                </div>
                <!--/.nav-collapse -->
            </div>
        </div>
    </div>

    <div class="container-fluid">

        <div class="row-fluid">
            <div id="element-list" class="span2 well">
                <ul class="nav nav-pills nav-stacked">
                    <li>
                        <div id="divElement" data-type='DIV' class="element-row ui-draggable inputWrap">
                            <a href="javascript:void(0);" class="remove label label-important">
                                <i class="icon-remove icon-white"></i>删除</a>
                            <span class="drag containerDrag label">
                                <i class="icon-move"></i>拖动
                            </span>
                            <div class="preview">
                                div层
                            </div>
                            <div class="view">
                                <div class='divWrap subContainer'></div>
                            </div>
                        </div>
                    </li>

                    <li>
                        <div id="formElement" data-type='FORM' class="element-row ui-draggable inputWrap">
                            <a href="javascript:void(0);" class="remove label label-important">
                                <i class="icon-remove icon-white"></i>删除</a>
                            <span class="drag containerDrag label">
                                <i class="icon-move"></i>拖动
                            </span>
                            <span class="style form-style label label-info">
                                <i class="icon-edit"></i>样式设计
                            </span>
                            <div class="preview">
                                表单
                            </div>
                            <div class="view">
                                <form class="formWrap">
                                    <table data-row="2" data-col="4">
                                        <tbody>
                                            <tr>
                                                <td style="min-height:10px;width:25%" class="cell ui-sortable"></td>
                                                <td style="min-height:10px;width:25%" class="cell ui-sortable"></td>
                                                <td style="min-height:10px;width:25%" class="cell ui-sortable"></td>
                                                <td style="min-height:10px;width:25%" class="cell ui-sortable"></td>
                                            </tr>
                                            <tr>
                                                <td style="min-height:10px;width:25%" class="cell ui-sortable"></td>
                                                <td style="min-height:10px;width:25%" class="cell ui-sortable"></td>
                                                <td style="min-height:10px;width:25%" class="cell ui-sortable"></td>
                                                <td style="min-height:10px;width:25%" class="cell ui-sortable"></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </li>

                    <li>
                        <div id="gridElement" data-type='GRID' class="element-row ui-draggable inputWrap">
                            <a href="javascript:void(0);" class="remove label label-important">
                                <i class="icon-remove icon-white"></i>删除</a>
                            <span class="drag containerDrag label">
                                <i class="icon-move"></i>拖动
                            </span>
                            <span class="style grid-style label label-info">
                                <i class="icon-edit"></i>样式设计
                            </span>
                            <div class="preview">
                                Grid
                            </div>
                            <div class="view">
                                <div class="gridWrap">
                                    <table class="table table-bordered table-hover table-condensed">
                                        <thead>
                                            <tr>
                                                <th>表头</th>
                                                <th>表头</th>
                                                <th>表头</th>
                                                <th>表头</th>
                                            </tr>
                                        </thead>
                                        <tbody>

                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </li>

                    <li>
                        <div id="inputElement" data-type='INPUT' class="element-row ui-draggable input">
                            <a href="javascript:void(0);" class="remove label label-important">
                                <i class="icon-remove icon-white"></i>删除
                            </a>
                            <span class="drag inputDrag label">
                                <i class="icon-move"></i>拖动
                            </span>
                            <div class="preview">
                                文本框
                            </div>
                            <div class="view">
                                <div class='input-group'>
                                    <label>文字</label>
                                    <input type="text" class="input-block-level" placeholder="输入文字">
                                </div>
                            </div>
                        </div>
                    </li>


                </ul>
            </div>
            <div class="span9 offset1">
                <div id="demo" data-type='CONTAINER' data-uid='root' class='element-row'>

                </div>
            </div>

            <div id="layout"></div>

            <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h3 id="myModalLabel">模板</h3>
                </div>
                <div class="modal-body">
                    <textarea id="modalText"></textarea>
                </div>
                <div class="modal-footer">
                    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
                    <button class="btn btn-primary">Save changes</button>
                </div>
            </div>

            <div id="styleModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h3 id="myModalLabel">设置表单的布局</h3>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label" for="formCol">列</label>
                            <div class="controls">
                                <input id="formCol" type="text" class="input-block-level" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="formRow">行</label>
                            <div class="controls">
                                <input id="formRow" type="text" class="input-block-level" />
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
                    <button id='styleSetBtn' class="btn btn-primary">确定</button>
                </div>
            </div>
            <!--GridStyleDesign -->
            <div id="gridStyleModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h3 id="gridStyleModalLabel">设置Grid的样式</h3>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label" for="formCol">列</label>
                            <div class="controls">
                                <input id="formCol" type="text" class="input-block-level" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="formRow">行</label>
                            <div class="controls">
                                <input id="formRow" type="text" class="input-block-level" />
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
                    <button id='gridStyleSetBtn' class="btn btn-primary">确定</button>
                </div>
            </div>
            <!--input样式设计-->
            <div id="inputStyleModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h3 id="inputStyleModalLabel">设置文本框的样式</h3>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal">
                        <div class="row-fluid">
                            <div class="control-group span6">
                                <label class="control-label" for="inputId">ID</label>
                                <div class="controls">
                                    <input id="inputId" type="text" class="input-block-level" placeholder='ID' />
                                </div>
                            </div>
                            <div class="control-group span6">
                                <label class="control-label" for="inputName">Name</label>
                                <div class="controls">
                                    <input id="inputName" type="text" class="input-block-level" placeholder='Name' />
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="control-group span6">
                                <label class="control-label" for="inputType">类型</label>
                                <div class="controls">
                                    <select id="inputType" class="input-block-level">
                                        <option value='text'>text</option>
                                        <option value='date'>date</option>
                                        <option value='select'>select</option>
                                    </select>
                                </div>
                            </div>
                            <div class="control-group span6">
                                <label class="control-label" for="inputLabel">标签名称</label>
                                <div class="controls">
                                    <input id="inputLabel" type="text" class="input-block-level" placeholder='' />
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
                    <button id='inputStyleSetBtn' class="btn btn-primary">确定</button>
                </div>
            </div>

            <!--未绑定数据的input样式设计-->
            <div id="unbindDataInputStyleModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h3 id="unbindDataInputStyleModalLabel">设置文本框的样式</h3>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label" for="ubBindColumn">绑定字段</label>
                            <div class="controls">
                                <select id="ubBindColumn" class="input-block-level">
                                    <option value='text'>text</option>
                                    <option value='date'>date</option>
                                    <option value='select'>select</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="ubInputId">ID</label>
                            <div class="controls">
                                <input id="ubInputId" type="text" class="input-block-level" placeholder='ID' />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="ubInputName">Name</label>
                            <div class="controls">
                                <input id="ubInputName" type="text" class="input-block-level" placeholder='Name' />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="ubInputType">类型</label>
                            <div class="controls">
                                <select id="ubInputType" class="input-block-level">
                                    <option value='text'>text</option>
                                    <option value='date'>date</option>
                                    <option value='select'>select</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="ubInputLabel">标签名称</label>
                            <div class="controls">
                                <input id="ubInputLabel" type="text" class="input-block-level" placeholder='' />
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
                    <button id='ubInputStyleSetBtn' class="btn btn-primary">确定</button>
                </div>
            </div>

        </div>

    </div>
    <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="jquery-1.8.3.js"></script>
    <script src="js/jui/jquery.ui.core.js"></script>
    <script src="js/jui/jquery.ui.widget.js"></script>
    <script src="js/jui/jquery.ui.mouse.js"></script>
    <script src="js/jui/jquery.ui.draggable.js"></script>
    <script src="js/jui/jquery.ui.droppable.js"></script>
    <script src="js/jui/jquery.ui.sortable.js"></script>
    <script src="js/jui/jquery.ui.resizable.js"></script>
    <script src="js/bootstrap.js"></script>
    <script src="js/math.uuid.js"></script>
    <script src="js/application.js"></script>
</body>

</html>
